<?php echo isset($errors) ? $errors : ''; ?>
<?php echo form_open_multipart(current_url()); ?>
<dl>
    <dt><?php echo __('category'); ?><span style="color: red">*</span>:  </dt>
    <dd>
        <select name="cat_id">
            <?php foreach ($category_options as $option): ?>
                <option value="<?php echo $option['id']; ?>"><?php echo $option['name']; ?></option>
            <?php endforeach; ?>
        </select>
    </dd>
    <dt><?php echo __('name_of_ticket'); ?><span style="color: red">*</span>: </dt>
    <dd>
        <?php echo form_input(array('name' => 'ticket_name', 'value' => set_value('ticket_name'), 'max-length' => 300)); ?>
    </dd>

    <dt><?php echo __('price'); ?><span style="color: red">*</span>: </dt>
    <dd>
        <?php echo form_input(array('name' => 'price', 'value' => isset($_POST['price']) ? $_POST['price'] : 0, 'max-length' => 300)); ?>
    </dd>

    <dt><?php echo __('quantity'); ?>: </dt>
    <dd>
        <?php echo form_input(array('name' => 'quantity', 'value' => isset($_POST['quantity']) ? $_POST['quantity'] : 0, 'max-length' => 300)); ?>
    </dd>

    <dt><?php echo __('expiry'); ?>: </dt>
    <dd>
        <?php echo form_input(array('name' => 'expiry_date', 'id' => 'expiry_date', 'value' => set_value('expiry_date'), 'max-length' => 300)); ?>
    </dd>
    <dt><?php echo __('choose_an_image'); ?>: </dt>
    <dd>
        <input type="file" name="userfile" size="35" accept="image/*" class="image_chooser"/>
    </dd>
    <dt><?php echo __('description'); ?>: </dt>
    <dd>
        <?php echo form_textarea(array('name' => 'description', 'value' => isset($_POST['description']) ? $_POST['description'] : NULL, 'max-length' => 300)); ?>
    </dd>
    
    <dt><?php echo __('tags'); ?>: </dt>
    <dd>
        <?php echo form_input(array('name' => 'tag', 'id' => 'tag', 'value' => isset($_POST['tag']) ? $_POST['tag'] : '', 'max-length' => 100)); ?>
    </dd>    
    
    <dt><?php echo __('admin_aboutus_meta_title'); ?>: </dt>
    <dd>
        <?php //echo form_textarea(array('name' => 'meta_title', 'value' => isset($_POST['meta_title']) ? $_POST['meta_title'] : '', 'max-length' => 200)); ?>
        <?php echo form_input(array('name' => 'meta_title', 'id' => 'meta_title', 'value' => isset($_POST['meta_title']) ? $_POST['meta_title'] : '', 'max-length' => 200)); ?>
    </dd>    
    <dt><?php echo __('admin_aboutus_meta_description'); ?>: </dt>
    <dd>
        <?php echo form_textarea(array('name' => 'meta_description', 'value' => isset($_POST['meta_description']) ? $_POST['meta_description'] : '', 'max-length' => 300)); ?>
    </dd>
    <dt><?php echo __('admin_aboutus_meta_keyword'); ?>: </dt>
    <dd>
        <?php echo form_textarea(array('name' => 'meta_keyword', 'value' => isset($_POST['meta_keyword']) ? $_POST['meta_keyword'] : '', 'max-length' => 300)); ?>
    </dd>
</dl>

<?php
echo form_submit('btnSubmit', __('submit'));
echo '&nbsp;';
?>
<input type="button" value="Reset" onClick="this.form.reset()" />
<?php echo form_close(); ?>
